Pass the actual text from $row->title (escaped with htmlspecialchars) instead of...
authorAlex Z <mrzman@users.mediawiki.org>
Mon, 6 Oct 2008 04:36:39 +0000 (04:36 +0000)
committerAlex Z <mrzman@users.mediawiki.org>
Mon, 6 Oct 2008 04:36:39 +0000 (04:36 +0000)
includes/PageQueryPage.php

index 98338b1..a2091e8 100644 (file)
@@ -17,9 +17,9 @@ class PageQueryPage extends QueryPage {
        public function formatResult( $skin, $row ) {
                global $wgContLang;
                $title = Title::makeTitleSafe( $row->namespace, $row->title );
-               $text = null;
+               $text = $row->title;
                if ($title instanceof Title)
-                       $text = htmlspecialchars( $wgContLang->convert( $title->getPrefixedText() ) ); 
-               return $skin->link( $title,     $text, array(), array(), array('known', 'noclasses') );
+                       $text = $wgContLang->convert( $title->getPrefixedText() ); 
+               return $skin->link( $title, htmlspecialchars($text), array(), array(), array('known', 'noclasses') );
        }
 }